<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>C++ Web Framework: CSTLCompiler Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">C++ Web Framework
   &#160;<span id="projectnumber">3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_c_s_t_l_compiler-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">CSTLCompiler Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>This class compiles view pages with CSTL (C++ Server Pages Standard Tags Library).  
 <a href="class_c_s_t_l_compiler.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="cstlcompiler_8h_source.html">cstlcompiler.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2ff8b8d08a280dea2f9b7474a9759e8f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_s_t_l_compiler.html#a2ff8b8d08a280dea2f9b7474a9759e8f">CSTLCompiler</a> (const QByteArray &amp;str, const QString &amp;path, QMap&lt; QString, QObject *&gt; &amp;objects, bool isStrFileName=true)</td></tr>
<tr class="memdesc:a2ff8b8d08a280dea2f9b7474a9759e8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the str, objects and isStrFileName properties.  <a href="#a2ff8b8d08a280dea2f9b7474a9759e8f">More...</a><br /></td></tr>
<tr class="separator:a2ff8b8d08a280dea2f9b7474a9759e8f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cce5a503e81c5de099859fe0ae1c386"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_s_t_l_compiler.html#a3cce5a503e81c5de099859fe0ae1c386">output</a> ()</td></tr>
<tr class="memdesc:a3cce5a503e81c5de099859fe0ae1c386"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the compiled view page.  <a href="#a3cce5a503e81c5de099859fe0ae1c386">More...</a><br /></td></tr>
<tr class="separator:a3cce5a503e81c5de099859fe0ae1c386"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class compiles view pages with CSTL (C++ Server Pages Standard Tags Library). </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a2ff8b8d08a280dea2f9b7474a9759e8f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ff8b8d08a280dea2f9b7474a9759e8f">&#9670;&nbsp;</a></span>CSTLCompiler()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CWF_BEGIN_NAMESPACE CSTLCompiler::CSTLCompiler </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QMap&lt; QString, QObject *&gt; &amp;&#160;</td>
          <td class="paramname"><em>objects</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isStrFileName</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize the str, objects and isStrFileName properties. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>QByteArray &amp;str : If isStrFileName is true, it should be a file name, else, it should be the file content. </td></tr>
    <tr><td class="paramname">QMap&lt;QString,QObject</td><td>*&gt; &amp;objects : Container objects that can be compiled into the view page. </td></tr>
    <tr><td class="paramname">bool</td><td>isStrFileName : It indicates whether str is the name of a file or its contents. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a3cce5a503e81c5de099859fe0ae1c386"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3cce5a503e81c5de099859fe0ae1c386">&#9670;&nbsp;</a></span>output()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray CSTLCompiler::output </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the compiled view page. </p>
<dl class="section return"><dt>Returns</dt><dd>QByteArray : Compiled page. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/herik/CPPWebFramework/CPPWebFramework/cwf/<a class="el" href="cstlcompiler_8h_source.html">cstlcompiler.h</a></li>
<li>/home/herik/CPPWebFramework/CPPWebFramework/cwf/cstlcompiler.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon May 28 2018 11:09:08 for C++ Web Framework by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
